package OoDay01.Practice2;

public class Car {
    int price;
    String color;
    String brand;

    Car(){

    }
    Car(int price,String color,String brand){
        this.price=price;
        this.color=color;
        this.brand=brand;
    }
    void start(){
        System.out.println(price+"万的"+color+"色"+brand+"车启动了");
    }
    void run(){
        System.out.println(price+"万的"+color+"色"+brand+"车开走了");
    }
    void stop(){
        System.out.println(price+"万的"+color+"色"+brand+"车停了");
    }
}
